package com.ic.loan.pop

import android.content.Context
import com.ic.loan.R
import com.lxj.xpopup.core.CenterPopupView
import com.lxj.xpopup.util.XPopupUtils
import kotlinx.android.synthetic.main.pop_privacy_policy.view.*

class PrivacyPolicyPop(mContext: Context) : CenterPopupView(mContext) {

    override fun getImplLayoutId(): Int {
        return R.layout.pop_privacy_policy
    }

    override fun onCreate() {
        super.onCreate()
        tvGetMoneyNew.setOnClickListener {
            dismiss()
        }
    }

    override fun getMaxWidth(): Int {
        return (XPopupUtils.getAppWidth(context) * (1080 - 100) / 1080).toInt()
    }

}